//
//  AppDelegate.m
//  Toyota
//
//  Created by ld on 2024/6/25.
//

#import "AppDelegate.h"
#import <AdSupport/ASIdentifierManager.h>
#import "CYTabbarController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
    if(@available(iOS 13.0,*)){
        self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    }
#endif
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    
    
    
    [self.window makeKeyAndVisible];
    
   
////        // 不是第一次启动了
////        NSString * channelToken = [UserDefaults objectForKey:userToken];
////        if ([channelToken length]) {
            CYTabbarController *tabBarVc = [[CYTabbarController alloc]init];
            self.window.rootViewController = tabBarVc;
////        }else{
////            LoginViewController * channelLogin = [LoginViewController new];
////            self.window.rootViewController = channelLogin;
////        }
    
    // 启动图延时
    [IQKeyboardManager sharedManager].shouldResignOnTouchOutside = YES;
    
    
    return YES;
}





@end

